//
//  ViewController.m
//  oc封装AFN
//
//  Created by 王、小胜 on 16/7/22.
//  Copyright © 2016年 mac. All rights reserved.
//

#import "ViewController.h"
#import "NetworkTools.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    [[NetworkTools sharedTools]request:@"data/sk/101010100.html" parameters:nil finished:^(id result, NSError *error) {
        if (error!=nil) {
            NSLog(@"出错了");
            return;
        }
        NSLog(@"%@",result);
    }];
    
    //[[NetworkTools sharedTools]request:@"data/sk/101010100.html" parameters:nil];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
